﻿using Newtonsoft.Json;
using SIG.Model.Store;
using System;
using System.Collections.Generic;

namespace SIG.ViewModel.Front.Store
{
   public class GoodsVM
    {
        public int Id { get; set; }
        public string Name { get; set; }
        public decimal Price { get; set; }
        public string Thumbnail { get; set; }
        public string Description { get; set; }
        public DateTime CreatedDate { get; set; }
    }

    public class GoodsDetailVM: GoodsVM
    {
             
        public int CategoryId { get; set; }      
        public string FullDescription { get; set; }    
        public int ViewCount { get; set; }
        public bool Active { get; set; }
              
        public virtual GoodsCategoryVM GoodsCategory { get; set; }
        [JsonIgnore]
        public virtual ICollection<GoodsPhoto> GoodsPhotos { get; set; }
      
    }
}